#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import hashlib
from socket import socket

def get_pwd_md5(data):
    """
    加密密码/网络传输加密
    :param data:
    :return:
    """
    obj = hashlib.md5('fsd8923klvfoiiehge0['.encode('utf-8'))
    obj.update(data)
    return obj.hexdigest()

def get_file_md5(file_pash):
    pass


def register():
    """
    注册
    :return:
    """
    pass

def login():
    """
    登录
    :return:
    """
    pass


sk = socket()
sk.connect(('127.0.0.1', 9000))